package cn.wzy.pojo;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * (Car)表实体类
 *
 * @author makejava
 * @since 2023-02-01 11:35:52
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_car_car")
public class Car{
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String title;
    //封面 fastdfs地址
    private String cover;
    //原价
    private Double saleprice;
    //售价
    private Double costprice;
    //是否是新车 1-是 0-否
    private Integer isnew;
    //上牌时间:新车是没有上牌时间的
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date reigstertime;
    //里程
    private Double mileage;
    //店铺Id 当前这个车属于哪个店铺
    private Long shopId;
    //店铺的名字
    private String shopname;
    @TableField(exist = false)
    private String shopAdress;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createtime;
    //上架时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date onsaletime;
    //下架时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date offsaletime;
    //状态：0下架 1上架
    private Integer state;
    //是否超值
    private Integer costeffective;
    //急售
    private Integer rushsale;
    //准新车
    private Integer quasinewcar;
    //是否可迁全国
    private Integer transitivecountry;
    //类型id
    private Long typeId;
    @TableField(exist = false)
    private String typeName;
    //销售人员 - 关联employee的id
    private Long sellerId;
    @TableField(exist = false)
    private String seller;
    //原车主的id
    private Long userId;
    //用户发布二手车买卖消息的id
    private Long searchMasterMsgId;
    //审核状态 0-待审核 1-审核通过 2-审核驳回
    private Integer auditstate;

    @TableField(exist = false)
    private CarDetail carDetail;
    @TableField(exist = false)
    private String carInfo;
}

